﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LackProductRepReport.aspx.cs" Inherits="UI_Report_LackProductRepReport" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>缺货商品替换表</title>
    <link href="../../css/admin.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script> 
     <script type="text/javascript">
        $(function() {
                $('#dateFrom').datebox({ formatter: function(date) {
                    var y = date.getFullYear();
                    var m = date.getMonth() + 1;
                    var d = date.getDate();
                    return y + "-" + m + "-" + d;
                }
                });
                
                $('#dateTo').datebox({ formatter: function(date) {
                    var y = date.getFullYear();
                    var m = date.getMonth() + 1;
                    var d = date.getDate();
                    return y + "-" + m + "-" + d;
                }
            });
        });
    </script>  
</head>
<body>
    <form id="form1" runat="server">   
    <div class="div_Title">
    <span class="Body_Title">》》<%=this.Title %></span>
    </div>
    <div class="divBody">
    <div>
        <table>
            <tr>               
                <td>替换日期:</td>              
                 <td>
                    <input type ="text" ID ="dateFrom" runat="server" class ="easyui-datebox" required="true" style ="width :120px;"  /></td>                  
                <td> - </td>
                <td>
                    <input type ="text" ID="dateTo"  runat="server" class ="easyui-datebox" required="true" style ="width :120px;" /></td>                
                <td><asp:Button ID="btnQuery" runat="server" Text = " 查 询 " onclick="btnQuery_Click" OnClientClick = "return  $('this').form('validate');"></asp:Button></td>
                <td><asp:Button ID="btnLackProduct" runat="server" Text = " 导 出 " onclick="btnLackProduct_Click"></asp:Button></td>
            </tr>
        </table>        
    </div>
    <asp:Repeater ID="Repeater1" runat="server">
    <HeaderTemplate>
    <table class="Admin_Table" cellspacing="1px">
     <thead>
         <tr class="Admin_Table_Title">
            <th width="120px">序号</th>
            <th width="110px">Ebay帐号</th>
            <th width="90px">旧商品编号</th>
            <th width="150px">旧商品数量</th>
            <th width="150px">新商品编号</th>
            <th width="90px">新商品数量</th>
            <th width="90px">替换日期</th>
            <th width="150px">替换人</th>           
         </tr>
    </thead>
    </HeaderTemplate>
    <ItemTemplate>
    <tr>
        <td><%# Eval("SerialId")%></td>
        <td><%# Eval("EbayUserId")%></td>
        <td><%# Eval("OldProductId")%></td>
        <td><%# Eval("OldQuantity")%></td>        
        <td><%# Eval("NewProductId")%></td>        
        <td><%# Eval("NewQuantity")%></td>
        <td><%# Eval("ReplaceDate")%></td>
        <td><%# Eval("ReplaceUser")%></td>      
    </tr>
    </ItemTemplate>
    <FooterTemplate></table></FooterTemplate>
    </asp:Repeater>
    </div>                  
    </form>
</body>
</html>

